package com.erju.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author sunyuan
 * @date 2022/4/11 16:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EquipApplication {
    //主键id
    private Integer id;
    //设备ID
    private Integer equipment_id;
    //设备名称
    private String equipment_name;
    //设备类型
    private String equipment_type;
    //申请人名字
    private String application_name;
    //申请人手机号
    private String application_phone;
    //申请数量  <  空闲数量
    private Integer application_number;
    //申请时间
    private Date application_time;
    //归还时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date back_time;
    //申请理由
    private String application_reason;
    //申请状态
    private Integer application_status;
    //是否到期
    private Integer is_expiration;
    //是否归还
    private Integer is_back;
    //审批同意人
    private String application_agree;
    //同意/拒绝理由
    private String reason;
}
